package br.com.felix.fwt.svg.clipping;

import java.util.ArrayList;
import java.util.List;

import br.com.felix.fwt.svg.SVG;
import br.com.felix.fwt.svg.SVGBuilder;
import br.com.felix.fwt.svg.SVGId;

public class SVGClipPath implements SVG{

	
	private SVGId id;
	
	private SVGClipPath clipPath;
	
	private SVGClipPathUnits clipPathUnits;
	
	private List<SVG> shapes;
	
	
	public SVGClipPath(){
		shapes = new ArrayList<SVG>();
	}
	
	
	@Override
	public void toSVG(SVGBuilder svgBuilder) {
		svgBuilder.createElement("clipPath")
		.id(id)
		.clipPath(clipPath)
		.attribute("clipPathUnits", clipPathUnits)
		.bodyWithChildren(shapes)
		.endElement();
	}

}
